package map.tile.server.dao;


import map.tile.server.bo.Tile;
import map.tile.server.dto.BoundingBox;
import map.tile.server.dto.TileIndex;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface BaseTileDao {
    /**
     * 根据范围请求瓦片
     * @param boundingBox
     * @return
     */
    Tile getTile(BoundingBox boundingBox);
    Tile getTileByIndex(TileIndex tileIndex);

    BoundingBox getBoundingBoxOfTable(@Param("collectionName") String collectionName);
}
